package com.ryder.petmatediarybackend.module.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 描述: Token 视图对象（双 Token 模式）
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0
 * 更新日期: 2025/10/27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "Token 信息")
public class TokenVO {

    @Schema(description = "访问令牌（Access Token）")
    private String accessToken;

    @Schema(description = "刷新令牌（Refresh Token）")
    private String refreshToken;

    @Schema(description = "Access Token 剩余有效时间（秒）", example = "1800")
    private Long accessTokenTimeout;

    @Schema(description = "Refresh Token 剩余有效时间（秒）", example = "604800")
    private Long refreshTokenTimeout;

    @Schema(description = "登录设备类型", example = "WEB")
    private String loginDevice;
}
